package com.dh.project.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by 赵鹏程 on 2017/7/22.
 */
@TableName("insurance")
public class Insurance implements Serializable{

    /**
     * array : [{"name":"水系统","status":0},{"name":"VRV多联机","status":1}]
     * type : 中央空调
     */

    private String name;

    private Integer status;

    private String currDate;

    private String lastDate;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer address_id;

    private String type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCurrDate() {
        return currDate;
    }

    public void setCurrDate(String currDate) {
        this.currDate = currDate;
    }

    public String getLastDate() {
        return lastDate;
    }

    public void setLastDate(String lastDate) {
        this.lastDate = lastDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAddress_id() {
        return address_id;
    }

    public void setAddress_id(Integer address_id) {
        this.address_id = address_id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Insurance{" +
                "name='" + name + '\'' +
                ", status=" + status +
                ", currDate=" + currDate +
                ", lastDate=" + lastDate +
                ", id=" + id +
                ", address_id=" + address_id +
                '}';
    }

    public Insurance(String name, Integer status, String currDate, String type) {
        this.name = name;
        this.status = status;
        this.currDate = currDate;
        this.type = type;
    }


    public Insurance() {
        super();
    }
}
